import { request } from '@/utils/request'

// 树
export function dictionaryTree(param) {
	return request({
		url: '/dict/show',
		method: 'post',
		params: param,
	})
}

// 字典详情
export function dictionaryDetail(param) {
	return request({
		url: '/dict/detail',
		method: 'post',
		params: param,
	})
}

// 保存
export function dictionarySave(param) {
	return request({
		url: '/dict/save',
		method: 'post',
		params: param,
	})
}

//删除
export function dictionaryDelete(param) {
	return request({
		url: '/dict/delete',
		method: 'post',
		params: param,
	})
}
export function selectDictItems(params) {
	return request({
		url: '/dict/selectByCode',
		method: 'get',
		params,
	})
}
